package cn.cybozu.api;

public class KintoneFieldAclEntity
{
	private boolean editable = false;
	private boolean viewable = false;
	private boolean includeSubs = false;
	private Object entity = null;
	
	public void setUser(CybozuUser user)
	{
		entity = user;
	}
	public void setGroup(CybozuGroup group)
	{
		entity = group;
	}
	public void setOrganization(CybozuOrganization organization, boolean inCludeSubs)
	{
		entity = organization;
		this.includeSubs = inCludeSubs;
	}
	public Object getEntity()
	{
		return entity;
	}
	public boolean isViewable()
	{
		return viewable;
	}
	public void setViewable(boolean viewable)
	{
		this.viewable = viewable;
	}
	public boolean isEditable()
	{
		return editable;
	}
	public void setEditable(boolean editable)
	{
		this.editable = editable;
	}
	public boolean isIncludeSubs()
	{
		return includeSubs;
	}
}
